\hypertarget{classTuna_1_1Momentum__ZCoDi}{
\subsection{Tuna::Momentum\_\-ZCoDi$<$ Tscheme $>$ Class Template Reference}
\label{classTuna_1_1Momentum__ZCoDi}\index{Tuna::Momentum\_\-ZCoDi@{Tuna::Momentum\_\-ZCoDi}}
}


This class derives from \hyperlink{classTuna_1_1GeneralEquation}{GeneralEquation} through B \& N trick.  


Inheritance diagram for Tuna::Momentum\_\-ZCoDi$<$ Tscheme $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTuna_1_1Momentum__ZCoDi}
\end{center}
\end{figure}
\subsubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Typeinfo$<$ Tscheme $>$::\hyperlink{classTuna_1_1Momentum__ZCoDi_a625a2c2312164b56a41760486aaccb97}{prec\_\-t} \hyperlink{classTuna_1_1Momentum__ZCoDi_a625a2c2312164b56a41760486aaccb97}{prec\_\-t}
\begin{DoxyCompactList}\small\item\em Precision used for the numerical operations. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classTuna_1_1Momentum__ZCoDi_aba35068caa81b09a8a51f1b6e4fa3721}{Momentum\_\-ZCoDi} (ScalarField \&phi\_\-global, DiagMat \&matrix, ScalarField \&b, const floatTinyArray\_\-t \&deltas)
\begin{DoxyCompactList}\small\item\em Main constructor. \end{DoxyCompactList}\item 
Tscheme \& \hyperlink{classTuna_1_1Momentum__ZCoDi_a42e70d7536537b2381c57cd35c4251f8}{asDerived} ()
\begin{DoxyCompactList}\small\item\em The Curiously Recursive Template Pattern (CRTP) is used. \end{DoxyCompactList}\item 
\hypertarget{classTuna_1_1Momentum__ZCoDi_a4a7e3bd1368607b4c8e6694737ab7ec3}{
bool \hyperlink{classTuna_1_1Momentum__ZCoDi_a4a7e3bd1368607b4c8e6694737ab7ec3}{calcCoefficients} ()}
\label{classTuna_1_1Momentum__ZCoDi_a4a7e3bd1368607b4c8e6694737ab7ec3}

\begin{DoxyCompactList}\small\item\em Call to the functions defined in the derived classes. \end{DoxyCompactList}\item 
bool \hyperlink{classTuna_1_1Momentum__ZCoDi_a89ee315d936669e7f0fd3a8a44ac43a8}{calcCoefficients} (const ScalarField \&nut)
\begin{DoxyCompactList}\small\item\em Function to calculate the coefficients of discrete equations for turbulent regime. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
\subsubsection*{template$<$typename Tscheme$>$class Tuna::Momentum\_\-ZCoDi$<$ Tscheme $>$}

In this class some particular variables and methods for scalar PDE's are defined. This class implements the FVM discretized z-\/component of momentum equation for Newtonian incompressible fluids.

\begin{DoxyAuthor}{Author}
Luis M. de la Cruz \mbox{[} Thu May 7 13:55:49 CDT 2009 \mbox{]} 
\end{DoxyAuthor}


Definition at line 47 of file Momentum\_\-ZCoDi.hpp.



\subsubsection{Member Typedef Documentation}
\hypertarget{classTuna_1_1Momentum__ZCoDi_a625a2c2312164b56a41760486aaccb97}{
\index{Tuna::Momentum\_\-ZCoDi@{Tuna::Momentum\_\-ZCoDi}!prec\_\-t@{prec\_\-t}}
\index{prec\_\-t@{prec\_\-t}!Tuna::Momentum_ZCoDi@{Tuna::Momentum\_\-ZCoDi}}
\paragraph[{prec\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ typedef Typeinfo$<$Tscheme$>$::{\bf prec\_\-t} {\bf Tuna::Momentum\_\-ZCoDi}$<$ Tscheme $>$::{\bf prec\_\-t}}}
\label{classTuna_1_1Momentum__ZCoDi_a625a2c2312164b56a41760486aaccb97}


Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_a39e7293ae9e10a2fc90f422da1d28ecd}{Tuna::GeneralEquation$<$ Momentum\_\-ZCoDi$<$ Tscheme $>$ $>$}.



Definition at line 52 of file Momentum\_\-ZCoDi.hpp.



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classTuna_1_1Momentum__ZCoDi_aba35068caa81b09a8a51f1b6e4fa3721}{
\index{Tuna::Momentum\_\-ZCoDi@{Tuna::Momentum\_\-ZCoDi}!Momentum\_\-ZCoDi@{Momentum\_\-ZCoDi}}
\index{Momentum\_\-ZCoDi@{Momentum\_\-ZCoDi}!Tuna::Momentum_ZCoDi@{Tuna::Momentum\_\-ZCoDi}}
\paragraph[{Momentum\_\-ZCoDi}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ {\bf Tuna::Momentum\_\-ZCoDi}$<$ Tscheme $>$::{\bf Momentum\_\-ZCoDi} (
\begin{DoxyParamCaption}
\item[{ScalarField \&}]{phi\_\-global, }
\item[{DiagMat \&}]{matrix, }
\item[{ScalarField \&}]{b, }
\item[{const floatTinyArray\_\-t \&}]{deltas}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__ZCoDi_aba35068caa81b09a8a51f1b6e4fa3721}
The scalarfield {\ttfamily phi\_\-0} defined here is a reference to a global field variable. Here {\ttfamily phi\_\-0} is used as an old value of that field variable. 

Definition at line 65 of file Momentum\_\-ZCoDi.hpp.



\subsubsection{Member Function Documentation}
\hypertarget{classTuna_1_1Momentum__ZCoDi_a42e70d7536537b2381c57cd35c4251f8}{
\index{Tuna::Momentum\_\-ZCoDi@{Tuna::Momentum\_\-ZCoDi}!asDerived@{asDerived}}
\index{asDerived@{asDerived}!Tuna::Momentum_ZCoDi@{Tuna::Momentum\_\-ZCoDi}}
\paragraph[{asDerived}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ Tscheme\& {\bf Tuna::Momentum\_\-ZCoDi}$<$ Tscheme $>$::asDerived (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__ZCoDi_a42e70d7536537b2381c57cd35c4251f8}
\hyperlink{classTuna_1_1Momentum__ZCoDi_a42e70d7536537b2381c57cd35c4251f8}{asDerived()} gets an returns a reference to the derived class. 

Reimplemented from \hyperlink{classTuna_1_1GeneralEquation_aac63dc10324dcfdd7aaabdc63ec0c67f}{Tuna::GeneralEquation$<$ Momentum\_\-ZCoDi$<$ Tscheme $>$ $>$}.



Definition at line 82 of file Momentum\_\-ZCoDi.hpp.

\hypertarget{classTuna_1_1Momentum__ZCoDi_a89ee315d936669e7f0fd3a8a44ac43a8}{
\index{Tuna::Momentum\_\-ZCoDi@{Tuna::Momentum\_\-ZCoDi}!calcCoefficients@{calcCoefficients}}
\index{calcCoefficients@{calcCoefficients}!Tuna::Momentum_ZCoDi@{Tuna::Momentum\_\-ZCoDi}}
\paragraph[{calcCoefficients}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Tscheme $>$ bool {\bf Tuna::Momentum\_\-ZCoDi}$<$ Tscheme $>$::calcCoefficients (
\begin{DoxyParamCaption}
\item[{const ScalarField \&}]{nut}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTuna_1_1Momentum__ZCoDi_a89ee315d936669e7f0fd3a8a44ac43a8}
Turbulent viscosity is passed as argument (nut) 

Definition at line 113 of file Momentum\_\-ZCoDi.hpp.

